#include "Reader.h"
#include "Text.h"


void readChar(FILE* is)
{
    TextChar field1;
    TextChar field2;
    TextChar field3;
    TextChar field4;
    TextChar field5;
    TextChar field6;
    TextChar field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    fscanf(is, "%10*[\n]");              // Go to next line.
}

void readChar(std::istream& is)
{
    TextChar field1;
    TextChar field2;
    TextChar field3;
    TextChar field4;
    TextChar field5;
    TextChar field6;
    TextChar field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    is.ignore(10, '\n');              // Go to next line.
}


void readString(FILE* is)
{
    TextString field1;
    TextString field2;
    TextString field3;
    TextString field4;
    TextString field5;
    TextString field6;
    TextString field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    fscanf(is, "%10*[\n]");              // Go to next line.
}

void readString(std::istream& is)
{
    TextString field1;
    TextString field2;
    TextString field3;
    TextString field4;
    TextString field5;
    TextString field6;
    TextString field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    is.ignore(10, '\n');              // Go to next line.
}
